<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>jQuery File Upload Example</title>
</head>
<body>
<input id="fileupload" type="file" name="files[]" multiple>
<script src="/assets/js/jquery-1.6.4.js"></script>
<script src="/assets/js/jquery-ui/js/jquery-ui-1.8.16.custom.min.js"></script>
<script src="/assets/js/fileupload/jquery.iframe-transport.js"></script>
<script src="/assets/js/fileupload/jquery.fileupload.js"></script>
<script>
$(function () {
    $('#fileupload').fileupload({
        dataType: 'json',
        url: 'upload',
        done: function (e, data) {
            $.each(data.result, function (index, file) {
                $('<p/>').text(file.name).appendTo('body');
            });
        }
    });
});
</script>
</body> 
</html>